----------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/mattlevendusky/Dropbox/Affective Polarization and Cue Taking/m
> easurement study data/poq_replication.log
  log type:  text
 opened on:  10 Sep 2018, 09:59:35

. use "poq_replication_data.dta", clear 

. 
. /************************************************/
. /* Construct Measures of Affective Polarization */
. /************************************************/
.  
. /* Feeling Thermometers */ 
. gen thermout = .
(2,784 missing values generated)

. replace thermout = reptherm if partyid_wave2 < 4
(1,108 real changes made)

. replace thermout = demtherm if partyid_wave2 > 4
(595 real changes made)

. 
. gen thermin = . 
(2,784 missing values generated)

. replace thermin = demtherm if partyid_wave2 < 4 
(1,112 real changes made)

. replace thermin = reptherm if partyid_wave2 > 4 
(599 real changes made)

. 
. gen therm_diff = thermin - thermout 
(1,082 missing values generated)

. 
. 
. /* Trait Ratings */ 
. alpha reppat repintel rephonest repopen repgener

Test scale = mean(unstandardized items)

Average interitem covariance:     1.090681
Number of items in the scale:            5
Scale reliability coefficient:      0.9218

. alpha rephyp repself repmean

Test scale = mean(unstandardized items)

Average interitem covariance:      1.31439
Number of items in the scale:            3
Scale reliability coefficient:      0.9031

. alpha dempat demintel demhonest demopen demgener

Test scale = mean(unstandardized items)

Average interitem covariance:     1.128767
Number of items in the scale:            5
Scale reliability coefficient:      0.9241

. alpha demhyp demself demmean

Test scale = mean(unstandardized items)

Average interitem covariance:     1.349966
Number of items in the scale:            3
Scale reliability coefficient:      0.8990

. 
. corr reppat repintel rephonest repopen repgener
(obs=1,959)

             |   reppat repintel rephon~t  repopen repgener
-------------+---------------------------------------------
      reppat |   1.0000
    repintel |   0.6916   1.0000
   rephonest |   0.6516   0.7216   1.0000
     repopen |   0.5536   0.7009   0.7930   1.0000
    repgener |   0.5971   0.6925   0.8137   0.8291   1.0000


. corr rephyp repself repmean
(obs=1,966)

             |   rephyp  repself  repmean
-------------+---------------------------
      rephyp |   1.0000
     repself |   0.7849   1.0000
     repmean |   0.7022   0.7824   1.0000


. corr dempat demintel demhonest demopen demgener
(obs=1,962)

             |   dempat demintel demhon~t  demopen demgener
-------------+---------------------------------------------
      dempat |   1.0000
    demintel |   0.7025   1.0000
   demhonest |   0.6809   0.7475   1.0000
     demopen |   0.6168   0.7096   0.7880   1.0000
    demgener |   0.6065   0.6958   0.7725   0.7841   1.0000


. corr demhyp demself demmean
(obs=1,965)

             |   demhyp  demself  demmean
-------------+---------------------------
      demhyp |   1.0000
     demself |   0.7631   1.0000
     demmean |   0.6910   0.7906   1.0000


. 
. egen repgood = rowmean(reppat repintel rephonest repopen repgener)
(814 missing values generated)

. egen repbad = rowmean(rephyp repself repmean)
(815 missing values generated)

. egen repall = rowmean(reppat repintel rephonest repopen repgener rephyp repself 
> repmean) 
(814 missing values generated)

. 
. egen demgood = rowmean(dempat demintel demhonest demopen demgener)
(815 missing values generated)

. egen dembad = rowmean(demhyp demself demmean)
(815 missing values generated)

. egen demall = rowmean(dempat demintel demhonest demopen demgener demhyp demself 
> demmean) 
(813 missing values generated)

. 
. gen same_good = . 
(2,784 missing values generated)

. replace same_good = demgood if partyid_wave2 < 4 
(1,080 real changes made)

. replace same_good = repgood if partyid_wave2 > 4 
(582 real changes made)

. 
. gen other_good = . 
(2,784 missing values generated)

. replace other_good = demgood if partyid_wave2 > 4 
(581 real changes made)

. replace other_good = repgood if partyid_wave2 < 4 
(1,080 real changes made)

. 
. gen same_bad = . 
(2,784 missing values generated)

. replace same_bad = dembad if partyid_wave2 < 4 
(1,080 real changes made)

. replace same_bad = repbad if partyid_wave2 > 4 
(581 real changes made)

. 
. gen other_bad = . 
(2,784 missing values generated)

. replace other_bad = dembad if partyid_wave2 > 4 
(581 real changes made)

. replace other_bad = repbad if partyid_wave2 < 4 
(1,080 real changes made)

. 
. gen same_all = . 
(2,784 missing values generated)

. replace same_all = demall if partyid_wave2 < 4 
(1,081 real changes made)

. replace same_all = repall if partyid_wave2 > 4 
(582 real changes made)

. 
. gen other_all = . 
(2,784 missing values generated)

. replace other_all = demall if partyid_wave2 > 4 
(582 real changes made)

. replace other_all = repall if partyid_wave2 < 4 
(1,080 real changes made)

. 
. gen gooddiff = .
(2,784 missing values generated)

. gen repdemgood = repgood-demgood 
(818 missing values generated)

. gen demrepgood = demgood-repgood
(818 missing values generated)

. replace gooddiff = repdemgood if partyid_wave2 < 4 
(1,078 real changes made)

. replace gooddiff = demrepgood if partyid_wave2 > 4
(580 real changes made)

. 
. gen baddiff = .
(2,784 missing values generated)

. gen repdembad = repbad-dembad 
(818 missing values generated)

. gen demrepbad = dembad-repbad
(818 missing values generated)

. replace baddiff = repdembad if partyid_wave2 < 4 
(1,078 real changes made)

. replace baddiff = demrepbad if partyid_wave2 > 4 
(580 real changes made)

. 
. /* In-Party/Out-Party Favorability */ 
. gen out_favorability = other_good - other_bad 
(1,124 missing values generated)

. gen in_favorability = same_good - same_bad 
(1,124 missing values generated)

. 
. 
. /* Social Distance Items: Scale into One */ 
. /* Higher values mean more social distance */ 
. gen sd1 = (-1*comfort_friends) + 5 
(129 missing values generated)

. gen sd2 = (-1*comfort_neighbor) + 5 
(130 missing values generated)

. alpha sd1 sd2 comfort_marriage 

Test scale = mean(unstandardized items)

Average interitem covariance:      .408377
Number of items in the scale:            3
Scale reliability coefficient:      0.7999

. egen soc_dist = rmean(sd1 sd2 comfort_marriage) 
(128 missing values generated)

.  
. /* Party Trust */ 
. gen same_trust = . 
(2,784 missing values generated)

. replace same_trust = demtrust if partyid_wave2 < 4 
(1,081 real changes made)

. replace same_trust = reptrust if partyid_wave2 > 4 
(581 real changes made)

. 
. gen other_trust = . 
(2,784 missing values generated)

. replace other_trust = reptrust if partyid_wave2 < 4 
(1,081 real changes made)

. replace other_trust = demtrust if partyid_wave2 > 4 
(581 real changes made)

. 
. 
. /********************************************/
. /* Correlation Matrix of Measures (Table 1) */
. /********************************************/
. /* ssc install polychoric */ 
. polychoric thermout out_favorability other_trust soc_dist 

Polychoric correlation matrix

                          thermout  out_favorability       other_trust
        thermout                 1
out_favorability         .52004298                 1
     other_trust         .57077562         .62927036                 1
        soc_dist        -.21351553        -.19028404        -.24519484

                          soc_dist
        soc_dist                 1

. return list /* this gives you the N used for calcuation */ 

scalars:
               r(pLR0) =  2.29305374360e-19
                r(LR0) =  80.96883662724576
             r(se_rho) =  .026121853862507
                r(rho) =  -.2451948386900088
              r(sum_w) =  1641
                  r(N) =  1641

macros:
               r(type) : "polyserial"

matrices:
                  r(R) :  4 x 4

. 
. /* What's the correlation for the differenced measures of affective polarization
> ? */ 
. gen trait_diff = in_favorability - out_favorability 
(1,128 missing values generated)

. gen trust_diff = same_trust - other_trust 
(1,122 missing values generated)

. 
. polychoric therm_diff trait_diff trust_diff soc_dist 

Polychoric correlation matrix

            therm_diff  trait_diff  trust_diff    soc_dist
therm_diff           1
trait_diff   .44305328           1
trust_diff    .6363765   .53911062           1
  soc_dist   .21500883   .11590383   .20518327           1

. return list

scalars:
               r(pLR0) =  1.18248586238e-16
                r(LR0) =  68.63889714310244
             r(se_rho) =  .0245102696090895
                r(rho) =  .2051832746737829
              r(sum_w) =  1639
                  r(N) =  1639

macros:
               r(type) : "polyserial"

matrices:
                  r(R) :  4 x 4

. /* If anything, even stronger correlations */ 
. 
. 
. /*********************************************************/
. /* Differences Across Experimental Conditions? (Table 2) */
. /*********************************************************/
.  
. /* Feeling Thermometers */ 
. reg thermout i.condition 

      Source |       SS           df       MS      Number of obs   =     1,703
-------------+----------------------------------   F(2, 1700)      =      8.70
       Model |  8930.60324         2  4465.30162   Prob > F        =    0.0002
    Residual |  872573.756     1,700   513.27868   R-squared       =    0.0101
-------------+----------------------------------   Adj R-squared   =    0.0090
       Total |  881504.359     1,702  517.922655   Root MSE        =    22.656

------------------------------------------------------------------------------
    thermout |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   condition |
          2  |  -4.110898   1.341417    -3.06   0.002    -6.741901   -1.479895
          3  |  -5.357486   1.346187    -3.98   0.000    -7.997844   -2.717128
             |
       _cons |   28.78809   .9481096    30.36   0.000     26.92851    30.64768
------------------------------------------------------------------------------

. outreg2 using exp_efffects.doc, dec(2) 
exp_efffects.doc
dir : seeout

. test 2.condition == 3.condition 

 ( 1)  2.condition - 3.condition = 0

       F(  1,  1700) =    0.86
            Prob > F =    0.3548

. 
. /* Trait Ratings */ 
. reg out_favorability i.condition 

      Source |       SS           df       MS      Number of obs   =     1,660
-------------+----------------------------------   F(2, 1657)      =      5.48
       Model |  29.7541156         2  14.8770578   Prob > F        =    0.0042
    Residual |  4496.15752     1,657  2.71343242   R-squared       =    0.0066
-------------+----------------------------------   Adj R-squared   =    0.0054
       Total |  4525.91163     1,659  2.72809622   Root MSE        =    1.6472

------------------------------------------------------------------------------
out_favora~y |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   condition |
          2  |  -.2609903   .0991528    -2.63   0.009    -.4554683   -.0665124
          3  |   -.302611   .0989743    -3.06   0.002    -.4967388   -.1084831
             |
       _cons |  -1.299577   .0701116   -18.54   0.000    -1.437094   -1.162061
------------------------------------------------------------------------------

. outreg2 using exp_efffects.doc, dec(2) append 
exp_efffects.doc
dir : seeout

. test 2.condition == 3.condition  

 ( 1)  2.condition - 3.condition = 0

       F(  1,  1657) =    0.18
            Prob > F =    0.6742

. 
. /* Trust in Parties */ 
. reg other_trust i.condition 

      Source |       SS           df       MS      Number of obs   =     1,662
-------------+----------------------------------   F(2, 1659)      =      2.15
       Model |  3.75471326         2  1.87735663   Prob > F        =    0.1165
    Residual |  1446.81328     1,659  .872099625   R-squared       =    0.0026
-------------+----------------------------------   Adj R-squared   =    0.0014
       Total |  1450.56799     1,661  .873310048   Root MSE        =    .93386

------------------------------------------------------------------------------
 other_trust |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   condition |
          2  |  -.0914484   .0561867    -1.63   0.104    -.2016527    .0187559
          3  |  -.1083032   .0561112    -1.93   0.054    -.2183594    .0017531
             |
       _cons |   1.887477   .0397839    47.44   0.000     1.809445    1.965509
------------------------------------------------------------------------------

. outreg2 using exp_efffects.doc, dec(2) append 
exp_efffects.doc
dir : seeout

. test 2.condition == 3.condition 

 ( 1)  2.condition - 3.condition = 0

       F(  1,  1659) =    0.09
            Prob > F =    0.7636

. 
. /***************************************/
. /* Correlation by Condition (Appendix) */
. /***************************************/
. 
. forval i=1/3{
  2.         polychoric thermout out_favorability other_trust soc_dist if conditio
> n ==`i'  
  3.         return list
  4. }

Polychoric correlation matrix

                          thermout  out_favorability       other_trust
        thermout                 1
out_favorability         .45647709                 1
     other_trust         .56683717         .65414254                 1
        soc_dist        -.19149614         -.2109515         -.2478996

                          soc_dist
        soc_dist                 1

scalars:
               r(pLR0) =  1.50711254488e-07
                r(LR0) =  27.58023124230795
             r(se_rho) =  .0450166646887256
                r(rho) =  -.2478995978164483
              r(sum_w) =  546
                  r(N) =  546

macros:
               r(type) : "polyserial"

matrices:
                  r(R) :  4 x 4

Polychoric correlation matrix

                          thermout  out_favorability       other_trust
        thermout                 1
out_favorability          .5668665                 1
     other_trust         .53941485         .66128907                 1
        soc_dist        -.20697259        -.13102853        -.23600034

                          soc_dist
        soc_dist                 1

scalars:
               r(pLR0) =  7.78880529886e-07
                r(LR0) =  24.40939190851668
             r(se_rho) =  .0463192969564037
                r(rho) =  -.2360003391559434
              r(sum_w) =  547
                  r(N) =  547

macros:
               r(type) : "polyserial"

matrices:
                  r(R) :  4 x 4

Polychoric correlation matrix

                          thermout  out_favorability       other_trust
        thermout                 1
out_favorability         .51804788                 1
     other_trust         .58482899         .56750106                 1
        soc_dist        -.24341522        -.23365345        -.26099529

                          soc_dist
        soc_dist                 1

scalars:
               r(pLR0) =  2.91442314848e-08
                r(LR0) =  30.76367765002033
             r(se_rho) =  .0450832946555987
                r(rho) =  -.26099528523839
              r(sum_w) =  548
                  r(N) =  548

macros:
               r(type) : "polyserial"

matrices:
                  r(R) :  4 x 4

. 
. forval i=1/3{
  2.         polychoric therm_diff trait_diff trust_diff soc_dist if condition ==`
> i' 
  3.         return list 
  4. }

Polychoric correlation matrix

            therm_diff  trait_diff  trust_diff    soc_dist
therm_diff           1
trait_diff   .60089726           1
trust_diff   .66021444   .66261173           1
  soc_dist   .23946621   .19444708   .19447994           1

scalars:
               r(pLR0) =  7.93340367293e-06
                r(LR0) =  19.95385022377923
             r(se_rho) =  .0444231185282361
                r(rho) =  .1944799420318806
              r(sum_w) =  545
                  r(N) =  545

macros:
               r(type) : "polyserial"

matrices:
                  r(R) :  4 x 4

Polychoric correlation matrix

            therm_diff  trait_diff  trust_diff    soc_dist
therm_diff           1
trait_diff   .63627251           1
trust_diff   .61875762   .69940896           1
  soc_dist   .17904411   .13015707   .17354358           1

scalars:
               r(pLR0) =  .0000638165140566
                r(LR0) =  15.98588494369051
             r(se_rho) =  .0439591924580237
                r(rho) =  .1735435839370754
              r(sum_w) =  546
                  r(N) =  546

macros:
               r(type) : "polyserial"

matrices:
                  r(R) :  4 x 4

Polychoric correlation matrix

            therm_diff  trait_diff  trust_diff    soc_dist
therm_diff           1
trait_diff   .18411864           1
trust_diff   .62736482   .22933727           1
  soc_dist   .23030393   .03383227   .24373944           1

scalars:
               r(pLR0) =  5.22200421039e-09
                r(LR0) =  34.10488367523294
             r(se_rho) =  .0393918776748974
                r(rho) =  .2437394442899909
              r(sum_w) =  548
                  r(N) =  548

macros:
               r(type) : "polyserial"

matrices:
                  r(R) :  4 x 4

. 
. ************************************
. ** Convergent Validity (Appendix) **
. ************************************
. 
. /* Partisan Social Identity (combined across Huddy et al. items) */ 
. alpha party_soc_iden1 party_soc_iden2 party_soc_iden3 party_soc_iden4 /* alpha =
>  0.87 */ 

Test scale = mean(unstandardized items)

Average interitem covariance:     .8504671
Number of items in the scale:            4
Scale reliability coefficient:      0.8782

. egen party_soc_iden = rmean(party_soc_iden1 party_soc_iden2 party_soc_iden3 part
> y_soc_iden4)  
(128 missing values generated)

. cor party_soc_iden party_import 
(obs=2,655)

             | party_~n party_~t
-------------+------------------
party_soc_~n |   1.0000
party_import |   0.8098   1.0000


. /* no surprise, these two are highly inter-related (r=0.81) */ 
. 
. /* Generate Postive/Negative Sentiments toward the parties */ 
. /* Following Lavine edt al. 2012, 57-60, we code this variable on 0 --> 1 scale,
>  higher values means you have stronger eval */ 
. gen dem_pos = . 
(2,784 missing values generated)

. replace dem_pos = 0 if demfav1 == 1 
(782 real changes made)

. replace dem_pos = 0.25 if demfav1 == 2 & demfav2 == 1
(198 real changes made)

. replace dem_pos = 0.50 if demfav1 == 2 & demfav2 == 2 
(383 real changes made)

. replace dem_pos = 0.75 if demfav1 == 2 & demfav2 == 3
(373 real changes made)

. replace dem_pos = 1 if demfav1 == 2 & demfav2 == 4 
(252 real changes made)

. 
. gen rep_pos = . 
(2,784 missing values generated)

. replace rep_pos = 0 if repfav1 == 1 
(1,125 real changes made)

. replace rep_pos = 0.25 if repfav1 == 2 & repfav2 == 1
(259 real changes made)

. replace rep_pos = 0.50 if repfav1 == 2 & repfav2 == 2 
(288 real changes made)

. replace rep_pos = 0.75 if repfav1 == 2 & repfav2 == 3
(211 real changes made)

. replace rep_pos = 1 if repfav1 == 2 & repfav2 == 4 
(108 real changes made)

. 
. gen dem_neg = . 
(2,784 missing values generated)

. replace dem_neg = 0 if demunfav1 == 1 
(919 real changes made)

. replace dem_neg = 0.25 if demunfav1 == 2 & demunfav2 == 1
(348 real changes made)

. replace dem_neg = 0.50 if demunfav1 == 2 & demunfav2 == 2 
(314 real changes made)

. replace dem_neg = 0.75 if demunfav1 == 2 & demunfav2 == 3
(208 real changes made)

. replace dem_neg = 1 if demunfav1 == 2 & demunfav2 == 4 
(198 real changes made)

. 
. gen rep_neg = . 
(2,784 missing values generated)

. replace rep_neg = 0 if repunfav1 == 1 
(729 real changes made)

. replace rep_neg = 0.25 if repunfav1 == 2 & repunfav2 == 1
(226 real changes made)

. replace rep_neg = 0.50 if repunfav1 == 2 & repunfav2 == 2 
(325 real changes made)

. replace rep_neg = 0.75 if repunfav1 == 2 & repunfav2 == 3
(301 real changes made)

. replace rep_neg = 1 if repunfav1 == 2 & repunfav2 == 4 
(408 real changes made)

. 
. gen same_pos = . 
(2,784 missing values generated)

. replace same_pos = dem_pos if partyid_wave2 < 4 
(1,089 real changes made)

. replace same_pos = rep_pos if partyid_wave2 > 4 
(586 real changes made)

. 
. gen other_pos = . 
(2,784 missing values generated)

. replace other_pos = rep_pos if partyid_wave2 < 4 
(1,091 real changes made)

. replace other_pos = dem_pos if partyid_wave2 > 4 
(586 real changes made)

. 
. gen same_neg = . 
(2,784 missing values generated)

. replace same_neg = dem_neg if partyid_wave2 < 4 
(1,088 real changes made)

. replace same_neg = rep_neg if partyid_wave2 > 4 
(586 real changes made)

. 
. gen other_neg = . 
(2,784 missing values generated)

. replace other_neg = rep_neg if partyid_wave2 < 4 
(1,090 real changes made)

. replace other_neg = dem_neg if partyid_wave2 > 4 
(586 real changes made)

. 
. /* Calculate univalence */ 
. gen univalence = (same_pos + other_neg) -(same_neg + other_pos) 
(1,110 missing values generated)

. 
. /* Output regressions for appendix tables */ 
. foreach var of varlist thermout out_favorability other_trust soc_dist{
  2.         reg `var' party_soc_iden  
  3.         outreg2 using part_soc_iden.doc, dec(2) 
  4. }

      Source |       SS           df       MS      Number of obs   =     1,700
-------------+----------------------------------   F(1, 1698)      =     44.28
       Model |  22390.2791         1  22390.2791   Prob > F        =    0.0000
    Residual |  858543.759     1,698  505.620588   R-squared       =    0.0254
-------------+----------------------------------   Adj R-squared   =    0.0248
       Total |  880934.038     1,699  518.501494   Root MSE        =    22.486

--------------------------------------------------------------------------------
      thermout |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
---------------+----------------------------------------------------------------
party_soc_iden |  -3.932716   .5909833    -6.65   0.000    -5.091849   -2.773584
         _cons |   38.40655   1.997206    19.23   0.000     34.48931     42.3238
--------------------------------------------------------------------------------
part_soc_iden.doc
dir : seeout

      Source |       SS           df       MS      Number of obs   =     1,657
-------------+----------------------------------   F(1, 1655)      =     21.60
       Model |  58.2403694         1  58.2403694   Prob > F        =    0.0000
    Residual |  4463.35617     1,655  2.69689195   R-squared       =    0.0129
-------------+----------------------------------   Adj R-squared   =    0.0123
       Total |  4521.59654     1,656  2.73043269   Root MSE        =    1.6422

--------------------------------------------------------------------------------
out_favorabi~y |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
---------------+----------------------------------------------------------------
party_soc_iden |  -.2034544   .0437811    -4.65   0.000    -.2893267   -.1175822
         _cons |  -.8267199   .1481834    -5.58   0.000    -1.117366   -.5360733
--------------------------------------------------------------------------------
part_soc_iden.doc
dir : seeout

      Source |       SS           df       MS      Number of obs   =     1,659
-------------+----------------------------------   F(1, 1657)      =      9.52
       Model |  8.28114598         1  8.28114598   Prob > F        =    0.0021
    Residual |  1440.83037     1,657  .869541561   R-squared       =    0.0057
-------------+----------------------------------   Adj R-squared   =    0.0051
       Total |  1449.11151     1,658  .874011769   Root MSE        =    .93249

--------------------------------------------------------------------------------
   other_trust |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
---------------+----------------------------------------------------------------
party_soc_iden |   -.076601   .0248219    -3.09   0.002    -.1252865   -.0279155
         _cons |   2.069209   .0840079    24.63   0.000     1.904436    2.233982
--------------------------------------------------------------------------------
part_soc_iden.doc
dir : seeout

      Source |       SS           df       MS      Number of obs   =     2,656
-------------+----------------------------------   F(1, 2654)      =    121.88
       Model |   59.496375         1   59.496375   Prob > F        =    0.0000
    Residual |  1295.60164     2,654  .488169419   R-squared       =    0.0439
-------------+----------------------------------   Adj R-squared   =    0.0435
       Total |  1355.09801     2,655  .510394732   Root MSE        =    .69869

--------------------------------------------------------------------------------
      soc_dist |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
---------------+----------------------------------------------------------------
party_soc_iden |   .1521144   .0137788    11.04   0.000     .1250962    .1791326
         _cons |   1.296845    .044212    29.33   0.000     1.210151    1.383538
--------------------------------------------------------------------------------
part_soc_iden.doc
dir : seeout

. 
. foreach var of varlist thermout out_favorability other_trust soc_dist{
  2.         reg `var' party_import   
  3.         outreg2 using party_import.doc, dec(2) 
  4. }

      Source |       SS           df       MS      Number of obs   =     1,699
-------------+----------------------------------   F(1, 1697)      =     16.95
       Model |  8706.00806         1  8706.00806   Prob > F        =    0.0000
    Residual |  871812.489     1,697  513.737471   R-squared       =    0.0099
-------------+----------------------------------   Adj R-squared   =    0.0093
       Total |  880518.497     1,698   518.56213   Root MSE        =    22.666

------------------------------------------------------------------------------
    thermout |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
party_import |  -1.894686   .4602547    -4.12   0.000    -2.797412   -.9919591
       _cons |   31.60437     1.5567    20.30   0.000     28.55112    34.65763
------------------------------------------------------------------------------
party_import.doc
dir : seeout

      Source |       SS           df       MS      Number of obs   =     1,656
-------------+----------------------------------   F(1, 1654)      =      7.96
       Model |   21.664063         1   21.664063   Prob > F        =    0.0048
    Residual |  4499.92449     1,654   2.7206315   R-squared       =    0.0048
-------------+----------------------------------   Adj R-squared   =    0.0042
       Total |  4521.58856     1,655  2.73207768   Root MSE        =    1.6494

------------------------------------------------------------------------------
out_favora~y |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
party_import |  -.0957027   .0339148    -2.82   0.005    -.1622231   -.0291822
       _cons |  -1.186208   .1148293   -10.33   0.000    -1.411434    -.960982
------------------------------------------------------------------------------
party_import.doc
dir : seeout

      Source |       SS           df       MS      Number of obs   =     1,658
-------------+----------------------------------   F(1, 1656)      =      7.27
       Model |  6.32854923         1  6.32854923   Prob > F        =    0.0071
    Residual |  1442.11053     1,656  .870839694   R-squared       =    0.0044
-------------+----------------------------------   Adj R-squared   =    0.0038
       Total |  1448.43908     1,657  .874133424   Root MSE        =    .93319

------------------------------------------------------------------------------
 other_trust |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
party_import |  -.0517398    .019193    -2.70   0.007    -.0893849   -.0140948
       _cons |   1.984285   .0650165    30.52   0.000     1.856762    2.111808
------------------------------------------------------------------------------
party_import.doc
dir : seeout

      Source |       SS           df       MS      Number of obs   =     2,655
-------------+----------------------------------   F(1, 2653)      =    136.73
       Model |  66.4067867         1  66.4067867   Prob > F        =    0.0000
    Residual |   1288.5079     2,653   .48567957   R-squared       =    0.0490
-------------+----------------------------------   Adj R-squared   =    0.0487
       Total |  1354.91469     2,654  .510517967   Root MSE        =    .69691

------------------------------------------------------------------------------
    soc_dist |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
party_import |   .1270413   .0108646    11.69   0.000     .1057374    .1483452
       _cons |   1.383425   .0350544    39.47   0.000     1.314688    1.452161
------------------------------------------------------------------------------
party_import.doc
dir : seeout

. 
. foreach var of varlist thermout out_favorability other_trust soc_dist{
  2.         reg `var' univalence 
  3.         outreg2 using univalence.doc, dec(2) 
  4. }

      Source |       SS           df       MS      Number of obs   =     1,661
-------------+----------------------------------   F(1, 1659)      =    488.85
       Model |  195124.086         1  195124.086   Prob > F        =    0.0000
    Residual |  662185.145     1,659  399.147164   R-squared       =    0.2276
-------------+----------------------------------   Adj R-squared   =    0.2271
       Total |  857309.232     1,660  516.451344   Root MSE        =    19.979

------------------------------------------------------------------------------
    thermout |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  univalence |   -15.7861   .7139796   -22.11   0.000    -17.18649    -14.3857
       _cons |   37.68553   .7377105    51.08   0.000     36.23859    39.13247
------------------------------------------------------------------------------
univalence.doc
dir : seeout

      Source |       SS           df       MS      Number of obs   =     1,660
-------------+----------------------------------   F(1, 1658)      =    547.79
       Model |  1123.97882         1  1123.97882   Prob > F        =    0.0000
    Residual |  3401.93282     1,658   2.0518292   R-squared       =    0.2483
-------------+----------------------------------   Adj R-squared   =    0.2479
       Total |  4525.91163     1,659  2.72809622   Root MSE        =    1.4324

------------------------------------------------------------------------------
out_favora~y |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  univalence |  -1.202175    .051364   -23.40   0.000     -1.30292    -1.10143
       _cons |  -.5600185   .0529823   -10.57   0.000    -.6639379   -.4560991
------------------------------------------------------------------------------
univalence.doc
dir : seeout

      Source |       SS           df       MS      Number of obs   =     1,662
-------------+----------------------------------   F(1, 1660)      =    504.42
       Model |  338.057504         1  338.057504   Prob > F        =    0.0000
    Residual |  1112.51049     1,660   .67018704   R-squared       =    0.2331
-------------+----------------------------------   Adj R-squared   =    0.2326
       Total |  1450.56799     1,661  .873310048   Root MSE        =    .81865

------------------------------------------------------------------------------
 other_trust |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  univalence |  -.6593357   .0293568   -22.46   0.000     -.716916   -.6017553
       _cons |   2.329085   .0302593    76.97   0.000     2.269734    2.388435
------------------------------------------------------------------------------
univalence.doc
dir : seeout

      Source |       SS           df       MS      Number of obs   =     1,671
-------------+----------------------------------   F(1, 1669)      =     46.55
       Model |  23.8269224         1  23.8269224   Prob > F        =    0.0000
    Residual |  854.227571     1,669  .511819994   R-squared       =    0.0271
-------------+----------------------------------   Adj R-squared   =    0.0266
       Total |  878.054493     1,670  .525781134   Root MSE        =    .71542

------------------------------------------------------------------------------
    soc_dist |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  univalence |   .1737394   .0254638     6.82   0.000     .1237951    .2236837
       _cons |   1.700578   .0262572    64.77   0.000     1.649077    1.752078
------------------------------------------------------------------------------
univalence.doc
dir : seeout

. 
. foreach var of varlist thermout out_favorability other_trust soc_dist{
  2.         reg `var' neg_part 
  3.         outreg2 using neg_part.doc, dec(2) 
  4. }

      Source |       SS           df       MS      Number of obs   =     1,662
-------------+----------------------------------   F(1, 1660)      =     26.65
       Model |  13516.7751         1  13516.7751   Prob > F        =    0.0000
    Residual |  841808.679     1,660  507.113662   R-squared       =    0.0158
-------------+----------------------------------   Adj R-squared   =    0.0152
       Total |  855325.454     1,661  514.946089   Root MSE        =    22.519

------------------------------------------------------------------------------
    thermout |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   neg_party |  -5.971264   1.156598    -5.16   0.000    -8.239808    -3.70272
       _cons |   33.52372     1.6584    20.21   0.000     30.27095     36.7765
------------------------------------------------------------------------------
neg_part.doc
dir : seeout

      Source |       SS           df       MS      Number of obs   =     1,619
-------------+----------------------------------   F(1, 1617)      =     33.38
       Model |  89.5498784         1  89.5498784   Prob > F        =    0.0000
    Residual |  4338.62805     1,617  2.68313423   R-squared       =    0.0202
-------------+----------------------------------   Adj R-squared   =    0.0196
       Total |  4428.17793     1,618  2.73682196   Root MSE        =     1.638

------------------------------------------------------------------------------
out_favora~y |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   neg_party |   -.492811   .0853039    -5.78   0.000    -.6601289   -.3254931
       _cons |   -.836209   .1222112    -6.84   0.000    -1.075918   -.5965001
------------------------------------------------------------------------------
neg_part.doc
dir : seeout

      Source |       SS           df       MS      Number of obs   =     1,621
-------------+----------------------------------   F(1, 1619)      =     21.31
       Model |  18.2452744         1  18.2452744   Prob > F        =    0.0000
    Residual |  1386.11746     1,619  .856156556   R-squared       =    0.0130
-------------+----------------------------------   Adj R-squared   =    0.0124
       Total |  1404.36274     1,620   .86689058   Root MSE        =    .92529

------------------------------------------------------------------------------
 other_trust |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   neg_party |  -.2224615   .0481899    -4.62   0.000    -.3169827   -.1279403
       _cons |   2.113353   .0689866    30.63   0.000     1.978041    2.248666
------------------------------------------------------------------------------
neg_part.doc
dir : seeout

      Source |       SS           df       MS      Number of obs   =     2,284
-------------+----------------------------------   F(1, 2282)      =      9.67
       Model |  4.93500312         1  4.93500312   Prob > F        =    0.0019
    Residual |   1164.5373     2,282   .51031433   R-squared       =    0.0042
-------------+----------------------------------   Adj R-squared   =    0.0038
       Total |   1169.4723     2,283  .512252433   Root MSE        =    .71436

------------------------------------------------------------------------------
    soc_dist |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   neg_party |   .0959373   .0308505     3.11   0.002     .0354393    .1564353
       _cons |   1.641071   .0450206    36.45   0.000     1.552785    1.729357
------------------------------------------------------------------------------
neg_part.doc
dir : seeout

.  
. 
. /**********************************/
. /* Identity Importance (Appendix) */
. /**********************************/
. 
. /* Relative Importance of Identities? */ 
. mean amer_import religion_import racial_import gender_import class_import party_
> import 

Mean estimation                   Number of obs   =      2,590

-----------------------------------------------------------------
                |       Mean   Std. Err.     [95% Conf. Interval]
----------------+------------------------------------------------
    amer_import |   4.106178    .021459      4.064099    4.148256
religion_import |   3.541699   .0251726      3.492338    3.591059
  racial_import |   3.157529   .0281132      3.102402    3.212656
  gender_import |   3.924324   .0232321      3.878769     3.96988
   class_import |   2.979923   .0238522      2.933151    3.026694
   party_import |   2.979923   .0245182      2.931846       3.028
-----------------------------------------------------------------

. 
. log close 
      name:  <unnamed>
       log:  /Users/mattlevendusky/Dropbox/Affective Polarization and Cue Taking/m
> easurement study data/poq_replication.log
  log type:  text
 closed on:  10 Sep 2018, 09:59:40
----------------------------------------------------------------------------------
